package com.yihu.yihuds.front.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yihu.cms.action.BaseController;
import com.yihu.cms.service.ArtworkQueryService;
import com.yihu.web.bean.vo.ChannelQuery;
/***
 * 前端接口，栏目
 * @author Aaron
 *
 */
@Controller
public class ChannelFrontController extends BaseController{
	private ArtworkQueryService service = new ArtworkQueryService();
	protected final Logger log = LoggerFactory.getLogger(this.getClass());
	@RequestMapping(value = "/front/channel/list", method = RequestMethod.GET)
	public @ResponseBody Object list(ChannelQuery query) {
		log.info("into artwork post.channel.list: " + query);
		return service.getChannelsByPage(query);
	}
}
